#include "GestureEvent.h"

static const int GestureEventType = 1099;

GestureEvent::GestureEvent(std::map<int, InputPoint> inputs, GestureType type):
        m_inputs(inputs),
        m_type(type)
{
}

GestureEvent::GestureEvent(const GestureEvent &ge) {
	m_inputs = ge.inputs_copy();
	m_type = ge.type();
}

std::map<int, InputPoint> GestureEvent::inputs_copy() const {
	return std::map<int, InputPoint>(m_inputs);
}

//GestureEvent::GestureEvent(InputPoint point, GestureType type):
//        QEvent((QEvent::Type) GestureEventType),
//        m_point(point),
//        m_type(type)
//{
//}

std::map<int, InputPoint> * GestureEvent::inputs()
{
    return &m_inputs;
}

int GestureEvent::type() const
{
    return m_type;
}
